#include "Player.h"

Player::Player(std::string fileName)
	:Object(fileName)
{
	exp = 0;
	money = 10000;
	ammo = 70;
	ammoInClip = 5;
}

void Player::update(float deltaT)
{
	position.x = velocity.x * deltaT + 0.5 * accel.x * deltaT * deltaT;
	position.y = velocity.y * deltaT + 0.5 * accel.y * deltaT * deltaT;
	position.z = velocity.z * deltaT + 0.5 * accel.z * deltaT * deltaT;
	
	velocity = velocity + accel * deltaT; //This might blow up in your face if you don't have vectors overloaded for a scalar.
}